<?php

/*
  MoneyTrans Model for Outgoing Cancel Request
 */

// Defaults
$Sp_Chr = "";
// File Data
$f = 1;
// Orders
$_sysGetCorrespondentStatusCodeDescription = array(0 => 'Na', 1 => 'Registred', 2 => 'Incident', 3 => 'Paid', 4 => 'Cancelled', 5 => 'Pre-Cancellation');
$_sysGetCorrespondentIncidentCode = array(0 => 'Na', 1 => 'Registred', 2 => 'In process', 3 => 'Processed', 4 => 'Cancelled');
#$__tftTransactionStatusCode = array('7'=>'1','9'=>'4','11'=>'3');
$__tftGetCorrespondentStatusCode = array('1' => '4', '2' => '1', '3' => '1', '16' => '1', '8' => '2', '11' => '3', '9' => '4', '18' => '5', '19', '5');

$log = '<?xml version="1.0" encoding="UTF-8" ?>
<Incident>
<CodeIncident>' . $GET[$y]['FraIciCorrReferenceIci'] . '</CodeIncident>
<CodeTransaction>6950' . $GET[$y]['FraIncReferenciaCo'] . '</CodeTransaction>
<TransactionVersion>' . $GET[$y]['FraIncVersion'] . '</TransactionVersion>
<CodeIncidentStatus>1</CodeIncidentStatus>
<IncidentStatusDescription>Registered</IncidentStatusDescription>
<IncidentDescription>' . $GET[$y]['FraIciNotas'] . '</IncidentDescription>
<DateIncident>
<Year>' . substr($GET[$y]['FraIciDate'], 0, 4) . '</Year>
<Month>' . substr($GET[$y]['FraIciDate'], 5, 2) . '</Month>
<Day>' . substr($GET[$y]['FraIciDate'], 8, 2) . '</Day>
<Hour>' . substr($GET[$y]['FraIciDate'], 11, 2) . '</Hour>
<Min>' . substr($GET[$y]['FraIciDate'], 14, 2) . '</Min>
<Sec>' . substr($GET[$y]['FraIciDate'], 17, 2) . '</Sec>
</DateIncident>
<FieldToModify>
<FieldName>CodeTransactionStatus</FieldName>
<FieldOldValue>REG</FieldOldValue>
<FieldNewValue>CCL</FieldNewValue>
</FieldToModify>
</Incident>';
?>
